package hydrap2p.library;

import hydrap2p.helper.Utility;

import java.util.Date;
import java.util.LinkedList;
import java.util.List;

public class ItemInfo extends hydrap2p.library.SharedItemInfo{
	public List<String> hashers;	// what hash scanners have sicced it
	public long accesstime;			// when this item was last accessed
	public List<Long> children;		// what children this object has
	public Date lastscan;			// when this file was last scanned for metadata and hashes
	public List<HashDataEx> targetHashesEx;	// the list of target hashes, with an extra boolean about whether we have it
	public List<HashDataEx> finishedHashesEx;	// the list of target hashes, with an extra boolean about whether we have it
	
	public String toPathFile()
	{
		return Utility.appendPath(pathname, name);
	}
	
	public void downconvertHashData()
	{
		targetHashes=new LinkedList<HashData>();
		targetHashes.addAll(targetHashesEx);
		finishedHashes=new LinkedList<HashData>();
		finishedHashes.addAll(finishedHashesEx);
	}
}
